package org.bronycorps.mlptss.domain.model;

import org.bronycorps.mlptss.manager.preferences.AssetsConfiguration.SpecialAttackConfiguration;

public class SpecialBulletType extends AbstractBulletType {

	private final boolean exploseOnHit;
	private final boolean followDirection;
	private final float lifeDuration;
	private final String scriptName;

	public SpecialBulletType(SpecialAttackConfiguration config) {
		super(config.getAnimationName());
		this.lifeDuration = config.getDuration();
		this.scriptName = config.getScript();
		this.exploseOnHit = config.isExploseOnHit();
		this.followDirection = config.isFollowDirection();
	}

	public float getLifeDuration() {
		return this.lifeDuration;
	}

	public String getScriptName() {
		return this.scriptName;
	}

	public boolean isExploseOnHit() {
		return this.exploseOnHit;
	}

	public boolean isFollowDirection() {
		return this.followDirection;
	}

}
